<!--包含头部文件-->
{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 推荐位管理 <span class="c-gray en">&gt;</span> <a href="{:url('featured/index')}">推荐位列表</a>{:refresh()}</nav>
<div class="page-container">
  <div class="text-c">
    <form method="get" action="{:url('featured/index')}">
      <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>选择推荐类别：</label>
      <div class="formControls col-xs-8 col-sm-3"> <span class="select-box">
        <select name="type" class="select">

          {volist name="types" id="vo"}
          <option value="{$key}">{$vo}</option>
          {/volist}

        </select>
        </span>
      </div>

      <button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont"></i> 搜索</button>
    </form>
  </div>

  <div class="mt-20">
    <table class="table table-border table-bordered table-bg table-hover table-sort">
      <thead>
      <tr class="text-c">
        <th width="40">ID</th>
        <th width="150">标题</th>
        <th width="100">地址</th>
        <th width="30">排序序号</th>
        <th width="80">新增时间</th>
        <th width="30">发布状态</th>
        <th width="30">操作</th>
      </tr>
      </thead>
      <tbody>
      {volist name="results" id="vo"}
      <tr class="text-c">
        <td>{$vo.id}</td>
        <td><a href="{$vo.url}" target="_blank">{$vo.title}</a></td>
        <td class="text-c">{$vo.url}</td>
        <td class="text-c listorder"><input type="text" size="3" name="listorder" attr-id="{$vo.id}" attr-model="Featured" value="{$vo.listorder}"></td>
        <td>{$vo.update_time}</td>
        <td class="td-status">{$vo.status|status}</td>
        <td class="td-manage">
          <a style="text-decoration:none" class="ml-5" onClick="" href="{:url('featured/edit', ['id'=>$vo.id])}" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>
          <a style="text-decoration:none" class="ml-5" onClick="o2o_del('{:url('base/status', ['id'=>$vo.id, 'status'=>-1,'model'=>'Featured'])}')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
        </td>
      </tr>
      {/volist}

      </tbody>
    </table>
  </div>
  {:pagination($results)}
</div>
<script>
    var SCOPE={
        'listorder_url':"{:url('base/listorder')}",
    };
</script>
<!--包含头部文件-->
{include file="public/footer" /}
